package pay.dao;

import org.apache.ibatis.annotations.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import pay.entity.TeamEntity;

@Mapper
public interface TeamMapper extends BaseMapper<TeamEntity> {
    @Select("select * from team where contest_item_id=#{itemId} and user_id=#{userId}")
    TeamEntity selectByItemIdAndUserId(@Param("itemId") Integer itemId, @Param("userId") String userId);

    int insert(TeamEntity team);

}